package com.lframework.starter.web.gen.mappers;

import com.lframework.starter.web.core.mapper.BaseMapper;
import com.lframework.starter.web.gen.dto.simpledb.OriSimpleTableDto;
import com.lframework.starter.web.gen.dto.simpledb.SimpleDBDto;
import com.lframework.starter.web.gen.vo.simpledb.SimpleTableSelectorVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SimpleDBMapper extends BaseMapper {

    /**
     * 选择器
     *
     * @param vo
     * @return
     */
    List<SimpleDBDto> selector(SimpleTableSelectorVo vo);

    /**
     * 根据TableName查询
     *
     * @param tableName
     * @return
     */
    OriSimpleTableDto getByTableName(@Param("tableName") String tableName);

    /**
     * 批量查询
     *
     * @param tableNames
     * @return
     */
    List<SimpleDBDto> listByIds(@Param("tableNames") List<String> tableNames);
}
